<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): Source/CPTLayer.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_layer_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTLayer.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_definitions_8h.html">CPTDefinitions.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &quot;CPTResponder.h&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#import &lt;QuartzCore/QuartzCore.h&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_graph.html" title="An abstract graph class.">CPTGraph</a>;
<a name="l00007"></a>00007 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_shadow.html" title="Immutable wrapper for various shadow drawing properties.">CPTShadow</a>;
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="interface_c_p_t_layer.html">00009</a> <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a> : <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html">CALayer</a>&lt;<a class="code" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot.">CPTResponder</a>&gt; {
<a name="l00010"></a>00010     <span class="keyword">@private</span>
<a name="l00011"></a><a class="code" href="interface_c_p_t_layer.html#ac962eb515958c49389f88f5c206a590c">00011</a>     CGFloat <a class="code" href="interface_c_p_t_layer.html#ac962eb515958c49389f88f5c206a590c" title="Amount to inset the left side of each sublayer.">paddingLeft</a>;
<a name="l00012"></a><a class="code" href="interface_c_p_t_layer.html#ad1a81c5bfc9c5f7b97dc5d0f5f7be970">00012</a>     CGFloat <a class="code" href="interface_c_p_t_layer.html#ad1a81c5bfc9c5f7b97dc5d0f5f7be970" title="Amount to inset the top of each sublayer.">paddingTop</a>;
<a name="l00013"></a><a class="code" href="interface_c_p_t_layer.html#aeb94b6248a686698a7b592a270d4a3b3">00013</a>     CGFloat <a class="code" href="interface_c_p_t_layer.html#aeb94b6248a686698a7b592a270d4a3b3" title="Amount to inset the right side of each sublayer.">paddingRight</a>;
<a name="l00014"></a><a class="code" href="interface_c_p_t_layer.html#a119c53f983101e645de4584f2230383e">00014</a>     CGFloat <a class="code" href="interface_c_p_t_layer.html#a119c53f983101e645de4584f2230383e" title="Amount to inset the bottom of each sublayer.">paddingBottom</a>;
<a name="l00015"></a><a class="code" href="interface_c_p_t_layer.html#aa09d6c69b5856b5c95d88d8008858481">00015</a>     <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="code" href="interface_c_p_t_layer.html#aa09d6c69b5856b5c95d88d8008858481" title="If YES, a sublayer mask is applied to clip sublayer content to the inside of the border.">masksToBorder</a>;
<a name="l00016"></a><a class="code" href="interface_c_p_t_layer.html#a1d727080db2811b223c733116b82f6e3">00016</a>     <a class="code" href="interface_c_p_t_shadow.html" title="Immutable wrapper for various shadow drawing properties.">CPTShadow</a> *<a class="code" href="interface_c_p_t_layer.html#a1d727080db2811b223c733116b82f6e3" title="The shadow drawn under the layer content. If nil (the default), no shadow is drawn.">shadow</a>;
<a name="l00017"></a>00017     <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> renderingRecursively;
<a name="l00018"></a><a class="code" href="interface_c_p_t_layer.html#ad4fefbcecda0705cb0f525540d0f9eb8">00018</a>     <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="code" href="interface_c_p_t_layer.html#ad4fefbcecda0705cb0f525540d0f9eb8" title="If YES, subclasses should optimize their drawing for speed over precision.">useFastRendering</a>;
<a name="l00019"></a><a class="code" href="interface_c_p_t_layer.html#a8d4794c9b39b95e0339b40deb71981b8">00019</a>     <a class="code" href="_c_p_t_definitions_8h.html#abd26af4304957387867e6e9e8cef1576" title="A custom definition for ARC weak references that falls back to unsafe unretained values on older plat...">__cpt_weak</a> <a class="code" href="interface_c_p_t_graph.html" title="An abstract graph class.">CPTGraph</a> *<a class="code" href="interface_c_p_t_layer.html#a8d4794c9b39b95e0339b40deb71981b8" title="The graph for the layer.">graph</a>;
<a name="l00020"></a><a class="code" href="interface_c_p_t_layer.html#a01374b55dfe10bbe13159fe0b31ab894">00020</a>     <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a> <a class="code" href="interface_c_p_t_layer.html#a01374b55dfe10bbe13159fe0b31ab894" title="A drawing path that encompasses the outer boundary of the layer border.">outerBorderPath</a>;
<a name="l00021"></a><a class="code" href="interface_c_p_t_layer.html#a13d9e668da9cd969860f963e194e38ea">00021</a>     <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a> <a class="code" href="interface_c_p_t_layer.html#a13d9e668da9cd969860f963e194e38ea" title="A drawing path that encompasses the inner boundary of the layer border.">innerBorderPath</a>;
<a name="l00022"></a>00022 }
<a name="l00023"></a>00023 
<a name="l00026"></a>00026 <span class="keyword">@property</span> (nonatomic, readwrite, <a class="code" href="_c_p_t_definitions_8h.html#a1133842e0f1c9446242d6a2ce34728ee" title="A custom definition for ARC weak properties that falls back to assign on older platforms.">cpt_weak_property</a>) <a class="code" href="_c_p_t_definitions_8h.html#abd26af4304957387867e6e9e8cef1576" title="A custom definition for ARC weak references that falls back to unsafe unretained values on older plat...">__cpt_weak</a> <a class="code" href="interface_c_p_t_graph.html" title="An abstract graph class.">CPTGraph</a> *graph;
<a name="l00028"></a>00028 
<a name="l00031"></a>00031 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat paddingLeft;
<a name="l00032"></a>00032 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat paddingTop;
<a name="l00033"></a>00033 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat paddingRight;
<a name="l00034"></a>00034 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat paddingBottom;
<a name="l00036"></a>00036 
<a name="l00039"></a><a class="code" href="interface_c_p_t_layer.html#ad95ea54a7ebf06e98e6ae9dd99d9b86a">00039</a> <span class="keyword">@property</span> (readwrite, assign) CGFloat contentsScale;
<a name="l00040"></a>00040 <span class="keyword">@property</span> (nonatomic, readonly, assign) <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> useFastRendering;
<a name="l00041"></a>00041 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_shadow.html" title="Immutable wrapper for various shadow drawing properties.">CPTShadow</a> *shadow;
<a name="l00043"></a>00043 
<a name="l00046"></a>00046 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> masksToBorder;
<a name="l00047"></a>00047 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a> outerBorderPath;
<a name="l00048"></a>00048 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a> innerBorderPath;
<a name="l00049"></a><a class="code" href="interface_c_p_t_layer.html#a00eb8c95b69aa830cead6cb9dd62d549">00049</a> <span class="keyword">@property</span> (nonatomic, readonly, assign) <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a> maskingPath;
<a name="l00050"></a><a class="code" href="interface_c_p_t_layer.html#acead64e0d841d758aa3f5d94b1e56825">00050</a> <span class="keyword">@property</span> (nonatomic, readonly, assign) <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a> sublayerMaskingPath;
<a name="l00052"></a>00052 
<a name="l00055"></a><a class="code" href="interface_c_p_t_layer.html#a38dd48786a040cdb102fa481d2aff263">00055</a> <span class="keyword">@property</span> (readonly) <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/Reference/Reference.html">NSSet</a> *sublayersExcludedFromAutomaticLayout;
<a name="l00057"></a>00057 
<a name="l00060"></a>00060 -(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)initWithFrame:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>)newFrame;
<a name="l00062"></a>00062 
<a name="l00065"></a>00065 -(void)renderAsVectorInContext:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)context;
<a name="l00066"></a>00066 -(void)recursivelyRenderInContext:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)context;
<a name="l00067"></a>00067 -(void)layoutAndRenderInContext:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)context;
<a name="l00068"></a>00068 -(<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html">NSData</a> *)dataForPDFRepresentationOfLayer;
<a name="l00070"></a>00070 
<a name="l00073"></a>00073 -(void)applySublayerMaskToContext:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)context forSublayer:(<a class="code" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a> *)sublayer withOffset:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>)offset;
<a name="l00074"></a>00074 -(void)applyMaskToContext:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)context;
<a name="l00076"></a>00076 
<a name="l00079"></a>00079 -(void)pixelAlign;
<a name="l00080"></a>00080 -(void)sublayerMarginLeft:(CGFloat *)left top:(CGFloat *)top right:(CGFloat *)right bottom:(CGFloat *)bottom;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 -(void)logLayers;
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">@end</span>
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 <span class="comment">// for MacOS 10.6 SDK compatibility</span>
<a name="l00089"></a>00089 <span class="preprocessor">#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#if MAC_OS_X_VERSION_MAX_ALLOWED &lt; 1070</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="keyword">@interface </span><a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html">CALayer</a>(CPTExtensions)
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="keyword">@property</span> (readwrite) CGFloat contentsScale;
<a name="l00095"></a>00095 
<a name="l00096"></a>00096 <span class="keyword">@end</span>
<a name="l00097"></a>00097 <span class="preprocessor">#endif</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>CPTLayer.h</b>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
